package TestDemo;

import java.util.Scanner;

class CaseConverter {
    public String convert(String value) {
        StringBuffer res = new StringBuffer(value);
        for (int i = 1; i < res.length(); i++) {
            if (res.charAt(i - 1) == ' ') {
                res.setCharAt(i, Character.toUpperCase(res.charAt(i)));
            }
        }
        return res.toString();
    }
}

public class TestDemo3 {
    public static void main(String[] args) {
        CaseConverter caseConverter = new CaseConverter();
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        s = caseConverter.convert(s);
        System.out.println(s);
    }
}
